package com.fas.system.controller;

import com.fas.system.service.ITemplateService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

/**
 * excel模板下载 Controller
 */
@Api(tags = "excel模板下载")
@RestController
@RequestMapping("/system/template")
public class TemplateController {

    @Resource
    private ITemplateService templateService;

    @GetMapping
    public void downloadTemplate(HttpServletResponse response,Integer type){
        templateService.downloadTemplate(response,type);
    }

}
